package com.dower.clothing.service.impl;

import java.util.List;

import com.dower.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dower.clothing.mapper.ClFnModelMapper;
import com.dower.clothing.domain.ClFnModel;
import com.dower.clothing.service.IClFnModelService;


/**
 * 款式字典Service业务层处理
 * 
 * @author dower
 * @date 2020-08-26
 */
@Service
public class ClFnModelServiceImpl implements IClFnModelService 
{
    @Autowired
    private ClFnModelMapper clFnModelMapper;

    /**
     * 查询款式字典
     * 
     * @param numId 款式字典ID
     * @return 款式字典
     */
    @Override
    public ClFnModel selectClFnModelById(Long numId)
    {
        return clFnModelMapper.selectClFnModelById(numId);
    }

    /**
     * 查询款式字典列表
     * 
     * @param clFnModel 款式字典
     * @return 款式字典
     */
    @Override
    public List<ClFnModel> selectClFnModelList(ClFnModel clFnModel)
    {
        return clFnModelMapper.selectClFnModelList(clFnModel);
    }

    /**
     * 新增款式字典
     * 
     * @param clFnModel 款式字典
     * @return 结果
     */
    @Override
    public int insertClFnModel(ClFnModel clFnModel)
    {
        return clFnModelMapper.insertClFnModel(clFnModel);
    }

    /**
     * 修改款式字典
     * 
     * @param clFnModel 款式字典
     * @return 结果
     */
    @Override
    public int updateClFnModel(ClFnModel clFnModel)
    {
        return clFnModelMapper.updateClFnModel(clFnModel);
    }

    /**
     * 删除款式字典对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteClFnModelByIds(String ids)
    {
        return clFnModelMapper.deleteClFnModelByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除款式字典信息
     * 
     * @param numId 款式字典ID
     * @return 结果
     */
    @Override
    public int deleteClFnModelById(Long numId)
    {
        return clFnModelMapper.deleteClFnModelById(numId);
    }
}
